package com.jch.basic.bio.client;

import java.io.IOException;
import java.net.Socket;
import java.nio.charset.Charset;

public class BioClient extends Thread{

    public static void main(String[] args) {
        try {
            Socket socket = new Socket("127.0.0.1",1112);
            System.out.println("BioClient start done!");
            BioClientHandler handler = new BioClientHandler(socket, Charset.forName("UTF-8"));
            handler.start();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
